﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using XfTech.SmartTms.Enums;

namespace XfTech.SmartTms.Issues.Dtos
{
    public class IssueCreateDto
    {
        /// <summary>
        /// 仓库Id
        /// </summary>
        public Guid RepositoryId { get; set; }

        /// <summary>
        /// 问题标题
        /// </summary>
        [StringLength(20)]
        [Required]
        public string Title { get; set; }

        /// <summary>
        /// 问题内容
        /// </summary>
        [StringLength(200)]
        [Required]
        public string Text { get; set; }

        /// <summary>
        /// 负责人Id
        /// </summary>
        public Guid? AssignedUserId { get; set; }

        /// <summary>
        /// 选中的标签ID
        /// </summary>
        public List<Guid> LabelIds { get; set; }

    }
}
